Compile C sources with -D_GNU_SOURCE=1 as with C++
This is mostly cosmetics, but allows installing libraries
on a very old system. C source files in ros/src/IGESFile
use sscanf, which adds a dependency against glibc >= 2.7
unless it is compiled with -D_GNU_SOURCE=1.
Unlike upstream, we do not install config.h since applications
built with OpenCascade may want to ship their own config.h file.
Installed headers must then not #include <config.h>
Unfortunately the situation became worse in 6.5.0, upstream relies
on config.h being included by all files; we have to include
config.h in recently added C++ files.
Move _OCC64 macro definition into /usr/include/opencascade/arch-6.5.0/Standard_Macro64.hxx
This file is shipped by libopencascade-foundation-6.5.0, because include
files are in arch:all packages and this macro must be set only on 64-bit archs. Closes: #486386
Gbp-Pq: Name OCC64.patch
Fix detection of multibuf.h by the configure script
Without this patch, configure prints:
checking X11/extensions/multibuf.h usability... no
configure: WARNING: X11/extensions/multibuf.h: present but cannot be compiled
checking X11/extensions/multibuf.h presence... yes
configure: WARNING: X11/extensions/multibuf.h: check for missing prerequisite headers?
configure: WARNING: X11/extensions/multibuf.h: see the Autoconf documentation
configure: WARNING: X11/extensions/multibuf.h: section "Present But Cannot Be Compiled"
configure: WARNING: X11/extensions/multibuf.h: proceeding with the compiler's result
checking for X11/extensions/multibuf.h... no
Also modify installed headers to search for FTGL headers in
the right directory. This is not needed to build opencascade,
but may help people including those headers.
And last, fix usage of FTGL, FTFace is an internal structure
of FTGL and is no more exported.
Drop utsname usage for unknown architectures. It is misused and
prevent compilation on these architectures, see for instance
http://buildd.debian-ports.org/fetch.php?pkg=opencascade&arch=kfreebsd-i386&ver=6.3.0.dfsg.1-3&stamp=1237965784&file=log&as=raw
http://buildd.debian-ports.org/fetch.php?pkg=opencascade&arch=hurd-i386&ver=6.3.0.dfsg.1-3&stamp=1238775033&file=log&as=raw
Error message is:
../../../../ros/src/Visual3d/Visual3d_TransientManager.cxx: In static member function 'static Standard_Boolean Visual3d_TransientManager::BeginDraw(const Handle_Visual3d_View&, Standard_Boolean, Standard_Boolean)':
../../../../ros/src/Visual3d/Visual3d_TransientManager.cxx:123:70: error: taking address of temporary [-fpermissive]
../../../../ros/src/Visual3d/Visual3d_TransientManager.cxx:127:68: error: taking address of temporary [-fpermissive]
../../../../ros/src/Visual3d/Visual3d_TransientManager.cxx: In static member function 'static void Visual3d_TransientManager::ClearDraw(const Handle_Visual3d_View&, Standard_Boolean)':
../../../../ros/src/Visual3d/Visual3d_TransientManager.cxx:192:77: error: taking address of temporary [-fpermissive]
../../../../ros/src/Visual3d/Visual3d_TransientManager.cxx:194:75: error: taking address of temporary [-fpermissive]
../../../../ros/src/Visual3d/Visual3d_TransientManager.cxx: In static member function 'static Standard_Boolean Visual3d_TransientManager::BeginAddDraw(const Handle_Visual3d_View&)':
../../../../ros/src/Visual3d/Visual3d_TransientManager.cxx:232:79: error: taking address of temporary [-fpermissive]
../../../../ros/src/Visual3d/Visual3d_TransientManager.cxx:234:77: error: taking address of temporary [-fpermissive]
Workaround poor performance of the new mesher in OCC 6.5.0 with B-spline surfaces
The new mesher in OCC 6.5.0 is more robust, but also produces much
larger meshes on B-spline surfaces. Until this bug is fixed, it
seems better to use the generic procedure.
Patch provided by Jérôme Robert.
See http://www.opencascade.org/org/forum/thread_20076/
Gbp-Pq: Topic submitted
Gbp-Pq: Name workaround-bug-mesher.patch
[ Denis Barbier ]
* Add debian/patches/submitted/ftbfs-g++4.6.patch
Fix FTBFS with g++ 4.6. Closes: #624943
* Add debian/patches/submitted/fix-Abs-parenthesis.patch
Fix misplaced parenthesis, patch by Fotios Sioutis
on the OpenCascade forum.
* debian/patches/hurd-fixes.patch: Rename ED variable into
EData, as ED is a macro defined in errno.h on the Hurd.
* Fix sparc v9 detection in fix-asm.patch to fix FTBFS
on sparc64.
* Fix debian/patches/compatibility-occ630-Value.patch: the
old Value() method did return a distance whereas
SquareDistance() now returns a square distance, so Value()
must call sqrt(). Thanks to Roman Lygin and Mikhail Sazonov
for the catch on the OpenCASCADE forum.
[ Adam C. Powell, IV ]
* Bumped Standards-Version to 3.9.2, no changes needed.